package com.changgou.config.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * freightTemplate实体类
 * @author 黑马架构师2.5
 *
 */
@Table(name="tb_freight_template")
public class FreightTemplate implements Serializable {

	@Id
	private Integer id;//ID

	private String name;//模板名称
	private String type;//计费方式
    @Column(name = "number")
	private Integer number;
	private Double price;
	private Integer addnumber;
	private Double addprice;
	private String regions;
    @Transient
	private Integer regionNum;
	private String addtime;
	private Integer useable;

	public Integer getNumber() {
		return number;
	}

    public Integer getRegionNum() {
        return regionNum;
    }

    public void setRegionNum(Integer regionNum) {
        this.regionNum = regionNum;
    }

    public void setNumber(Integer number) {
		this.number = number;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getAddnumber() {
		return addnumber;
	}

	public void setAddnumber(Integer addnumber) {
		this.addnumber = addnumber;
	}

	public Double getAddprice() {
		return addprice;
	}

	public void setAddprice(Double addprice) {
		this.addprice = addprice;
	}

	public String getRegions() {
		return regions;
	}

	public void setRegions(String regions) {
		this.regions = regions;
	}

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public Integer getUseable() {
		return useable;
	}

	public void setUseable(Integer useable) {
		this.useable = useable;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "FreightTemplate{" +
				"id=" + id +
				", name='" + name + '\'' +
				", type='" + type + '\'' +
				", number=" + number +
				", price=" + price +
				", addnumber=" + addnumber +
				", addprice=" + addprice +
				", regions='" + regions + '\'' +
				", addtime='" + addtime + '\'' +
				", useable=" + useable +
				'}';
	}
}
